Things to keep in mind before investing in stocks