Completed Login Logic
fixed sidebar issue