added login fucntionality. app working.