Added some business logic to sign-in functionality on front-end side.
Added usage of spring-security framework, for now without db.