working Login added with minor bugs