If the problem is of bad dream only, it is harmless and there is no need to worry about it. However, if you wake up without a refreshing sense or there are persistent worries or sadness during day time, it is suggesting do depression/Anxiety Disorder.
Next Steps
If there are additional symptoms/concerns, you should discuss this with a Psychiatrist.
Health Tips
Do not self medicate with sleeping pills